<template>
  <div id="search-box-cpn">
    <div class="search_box">
      <ul class="search" :style="{ width: fun.getPhoneEnv() == 3 ? '375px' : '' }">
        <li class="left" @click="tolocation">
          <img class="icon-local-img" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_local (2).png" alt="">
          <span>{{ address || "全国" }}</span>
          <!-- <i class="iconfont icon-member-bottom"></i> -->
        </li>
        <li class="right" @click="tosearch">
          <i class="iconfont icon-sousuo"></i>
          <input type="text" title="搜索" readonly="readonly" placeholder="请输入关键词搜索" />
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
import search_box_controller from "./search_box_controller.js";

export default search_box_controller;
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
#search-box-cpn {
  .search_box {
    .search {
      height: 2.75rem;
      line-height: 2.75rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 0.875rem;
      background-color: #fff;
      font-size: 0.85rem;

      .left {
        display: flex;

        .icon-local-img {
          width: 0.85rem;
          height: 0.85rem;
        }

        i {
          color: #333;
        }

        span {
          display: block;
          margin: 0 0.25rem;
          max-width: 5.75rem;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          color: #333;
        }

        i:last-child {
        }
      }

      .right {
        width: 14.375rem;
        height: 1.875rem;
        background: #f5f5f5;
        display: flex;
        line-height: 1.875rem;
        border-radius: 1rem;
        padding: 0 0.625rem;

        i {
          color: #999;
          margin-right: 0.375rem;
        }

        input {
          border: none;
          width: 100%;
        }
      }
    }
  }
}
</style>
